<?php

declare(strict_types=1);

namespace App\Model\Log;

use App\Model\UserProfile;
use Illuminate\Database\Eloquent\Model;

/**
 *  App\Models\CallbackLogAogra
 *  声网回调模型
 */
class CallbackLogAogra extends Model
{
    protected $table = 'callback_log_agora';

    const EVENT_TYPE = [
        107 => '进入频道',
        108 => '离开频道',
    ];

    public function eventUser()
    {
        return $this->belongsTo(UserProfile::class, 'uid', 'user_id');
    }
}
